package main

import (
	"fmt"
	"u2pppw/learn/retriever/real"
)

type Retriver interface {
	Get(url string) string
}

func download(r Retriver) string {
	return r.Get("http://www.imooc.com")
}

func main() {
	var r Retriver
	//r = mock.Retriever{"www.baidu.com"}
	r = real.Retriever{}
	fmt.Println(download(r))
}
